home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Games / JKII_Demo.sit / Jedi Knight II Demo / demo / assets0.pk3 / ui / videodriver.menu < prev   
Encoding:
Text File  |  2002-03-22  |  2.6 KB  |  119 lines

  1. // VIDEODRIVER MENU
  2. {
  3.     menuDef 
  4.     {
  5.         name                    "videodriverMenu"
  6.         visible                    0
  7.         fullScreen                0                                // MENU_TRUE            
  8.             rect                100 120 440 320
  9.         focusColor                1 1 1 1                            // Focus color for text and items
  10.         outOfBoundsClick                        // this closes the window if it gets a click out of the rectangle
  11.            style                 WINDOW_STYLE_FILLED
  12.         appearanceIncrement        75                                // In miliseconds
  13.         descX                    320
  14.         descY                    450
  15.         descScale                .8
  16.         descColor                .96 .933 .40 1                // Focus color for text and items
  17.         descAlignment            ITEM_ALIGN_CENTER        
  18.         appearanceIncrement        100                                // In miliseconds
  19.  
  20.         border 1
  21.         popup
  22.                                         
  23.         onESC 
  24.         { 
  25.             play                "sound/interface/button1.wav"
  26.             close                all
  27.             open                setupMenu
  28.         }
  29.  
  30.         onClose
  31.         {
  32.             play                "sound/interface/button1.wav" ; 
  33.         }
  34.  
  35.  
  36.         //----------------------------------------------------------------------------------------------
  37.         //
  38.         //    MENU BACKGROUND
  39.         //
  40.         //----------------------------------------------------------------------------------------------
  41.         itemDef 
  42.         {
  43.             name                driver_background
  44.             group                none
  45.             style                WINDOW_STYLE_SHADER
  46.             rect                0 0 440 320
  47.             background            "gfx/menus/menu_boxred"                    // Frame
  48.             forecolor            1 1 1 1
  49.             visible                1
  50.             decoration
  51.         }
  52.  
  53.         itemDef 
  54.         {
  55.             name                driver_done_button
  56.             group                none
  57.             style                WINDOW_STYLE_SHADER
  58.             rect                180 293 40 24
  59.             background            "gfx/menus/menu_buttonback"            // Frame around button
  60.             forecolor            1 1 1 1
  61.             decoration
  62.             visible            0
  63.             // appearance_slot        3
  64.         }
  65.  
  66.         itemDef 
  67.         {
  68.             name                driver_done
  69.             group                none
  70.             text                @MENUS3_DONE_CAPS
  71.             type                ITEM_TYPE_BUTTON
  72.             style                WINDOW_STYLE_EMPTY
  73.             rect                180 293 40 24
  74.             forecolor            1 1 1 1
  75.             textalign            ITEM_ALIGN_CENTER
  76.             textstyle            3
  77.             textalignx            20
  78.             textaligny            0
  79.             font                3
  80.             textscale            1
  81.             forecolor            .433 .703 .722 1
  82.             visible            1
  83.  
  84.             mouseEnter 
  85.             { 
  86.                 show        driver_done_button
  87.             }
  88.             mouseExit 
  89.             { 
  90.                 hide        driver_done_button            
  91.             }            
  92.             action
  93.             {
  94.                 close videodriverMenu
  95.             }
  96.         }
  97.  
  98.  
  99.         //----------------------------------------------------------------------------------------------
  100.         //
  101.         //    VIDEO DRIVER INFO
  102.         //
  103.         //----------------------------------------------------------------------------------------------
  104.         itemDef                                                    // Drivers
  105.         {
  106.             name                game_version
  107.             group                none
  108.             ownerdraw            249                                // UI_GLINFO
  109.             font                2
  110.             textscale            .8
  111.             rect                10 3 430 280
  112.             forecolor            .433 .703 .722 1
  113.             style                WINDOW_STYLE_EMPTY
  114.             textalign            ITEM_ALIGN_LEFT
  115.             visible                1
  116.             decoration 
  117.         }
  118.     }
  119. }